package zb.thr3;

import javax.swing.*;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @author wzby
 * @Date: 2022/8/8 16:48
 */
public class T1 implements Callable<Integer> {
    private Integer i;

    public T1(){
        this.i = 10;
    }

    public T1(int i){
        this.i = i;
    }

    @Override
    public Integer call() throws Exception {
        try {
            TimeUnit.SECONDS.sleep(3);
        }catch (Exception e){
            e.printStackTrace();
        }
        return this.i + this.i;
    }
}
